<form id="a_form" class="form-horizontal" method="post" role="form" action="">
    <div class="form-group">

        <label class="control-label col-xs-2 col-sm-2">开始日期:</label>
        <div class="col-xs-3 col-sm-2">
            <input  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="startdate" type="text" value="{$startdate}">
        </div>
        <label class="control-label col-xs-2 col-sm-2">结束日期:</label>
        <div class="col-xs-3 col-sm-2">
            <input  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="enddate" type="text" value="{$enddate}">
        </div>

        <div class="col-xs-2">
            <a type="submit" id="dosearch" class="btn btn-success">搜索</a>
        </div>
    </div>

</form>


<div id="echart1" style="height:310px;width:100%; background-color: #FFFFFF"></div>

<div id="echart2" style="height:300px;width:100%; background-color: #FFFFFF"></div>

<script>
    var Statsdata = {
        legendData: {:json_encode($legendData)},
        seriesData: {:json_encode($seriesData)},
        totlgs: {$totlgs},
    };
</script>